package consumer;

//import com.venky.utils.abstractPage;
import ecom.nopecom.BasePage;
import ecom.nopecom.util.NopeDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;


public class ContactusPage extends BasePage {

	
	WebDriver driver = NopeDriver.getCurrentDriver();
	public  boolean iscontactuspage() {

     //boolean c=sel.isTextPresent("Contact us");
	boolean c=	driver.findElement(By.xpath("//div[@class='page-body']/form/fieldset/legend")).getText().matches("Contact Us");
  	 
    // String c =driver.findElement(By.xpath("//div[@class='page-body']/form/fieldset/legend")).isDisplayed();
        return c;
    }
	

	public String iscontactus()
    {
    
		 //String c=sel.getTitle();
		String c=driver.getTitle();
        return c;
    
   
    }

    @Override
    public WebElement getLandingElement() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}

